package com.emep.changzhi.analyse.repository.basics;

import com.emep.changzhi.analyse.entity.basics.SysDepartmentInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author: LFY
 * @version:V1.0
 * @Description:
 * @Date: 2018/8/28 15:17
 */
public interface DepartmentRepository extends BaseRepository<SysDepartmentInfo,Long> {
    SysDepartmentInfo findByDepartmentId(Long id);

    List<SysDepartmentInfo> findAllByNameAndIsDelete(String name,String isDelete);

    List<SysDepartmentInfo> findAllByNameAndDepartmentIdNotAndEpaIdNotAndIsDelete(String name, Long departmentId , Long EPAId,String isDelete);
}
